home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3657 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  877 b 

  1. Path: ix.netcom.com!netnews
  2. From: kevgar@ix.netcom.com (Kevin Landry)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Unbuffered character input...
  5. Date: Tue, 30 Jan 1996 15:51:54 GMT
  6. Organization: Netcom
  7. Message-ID: <4elf0t$5vd@ixnews2.ix.netcom.com>
  8. References: <Pine.SGI.3.91.960129190205.27936A-100000@tahiti.cs.unm.edu>
  9. NNTP-Posting-Host: lbx-ca6-14.ix.netcom.com
  10. X-NETCOM-Date: Tue Jan 30  7:55:09 AM PST 1996
  11. X-Newsreader: Forte Agent .99.82
  12.  
  13. Caleb Haley <chaley@tahiti.cs.unm.edu> wrote:
  14.  
  15. >Greetings!
  16.  
  17. >Just curious--is there a way to do unbuffered character input in c?
  18. >i.e.  getting just one character without waiting for a carriage return 
  19. >(enter)...
  20.  
  21. I believe there are two commands in C that do this. getch() is
  22. unbuffered input without echo and getche() has the echo. Hope this
  23. helps.
  24.  
  25. -kevgar@ix.netcom.com
  26.      "Cry havoc, and let slip
  27.              the dogs of war!!"
  28.  
  29.